$(function () {

    layui.use(['layer', 'form', 'element'], function () {

        var layer = layui.layer,
            form = layui.form(),
            element = layui.element();

        var _index;

        $('.pj_add_pro_time').datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            /*startDate : new Date(),*/
            pickerPosition: 'bottom-right',
            startView: 2,
            minView: 2,
            forceParse: 0
        });

        // 初始化时间选择插件
        function initDatetimepicker() {
            $('.plan_start_time').datetimepicker({
                language: 'zh-CN',
                format: 'yyyy-mm-dd',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                /*startDate : '2014-3-21',
                endDate : new Date(),*/
                pickerPosition: 'top-right',
                startView: 2,
                minView: 2,
                forceParse: 0
            });
            $('.plan_stop_time').datetimepicker({
                language: 'zh-CN',
                format: 'yyyy-mm-dd',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                /*startDate : new Date(),*/
                pickerPosition: 'top-right',
                startView: 2,
                minView: 2,
                forceParse: 0
            });
        }

        initDatetimepicker();
    })

});